cmake_minimum_required(VERSION 3.10)
project(face_recognition_demo)

find_package(OpenCV REQUIRED)
include_directories(${OpenCV_INCLUDE_DIRS})

add_subdirectory(../dlib dlib_build)

find_package(nadjieb_mjpeg_streamer REQUIRED)

include_directories(
    ${CMAKE_SOURCE_DIR}/include
    ${CMAKE_SOURCE_DIR}
)

add_executable(web_capture
    web_capture.cpp
    FaceRecognizer.cpp
    PerformanceTimer.cpp
    ConfigParser.cpp
)

target_link_libraries(web_capture
    dlib::dlib
    ${OpenCV_LIBS}
    nadjieb_mjpeg_streamer::nadjieb_mjpeg_streamer
)